<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<script type="text/javascript">
			try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
		</script>

		
	</div>
	<div class="page-content">
        
        <div class="page-header">
			<h1>编辑店铺</h1>
		</div>
		<div class="row">
			 <div class="col-xs-12">
				<!-- PAGE CONTENT BEGINS -->
				<form id="usrform" action="<?php echo base_url()."admin/gasstation/edit_shop/".$shop->id;?>" method="post">
				<input type="hidden" name="shop->id" value="<?php if (isset($shop->id))echo $shop->id;?>">
				<input type="hidden" name="id" value="<?php if (isset($shop->id))echo $shop->id;?>">
				    <div class="box-body" style="display: inline-block;width: 100%">
				        <div class="form-group col-xs-6">
				            <label>店铺名称：</label>
				            <input name="shop_name" type="text" class="form-control" placeholder="" value="<?php echo $shop->shop_name;?>" />
			            </div>
			            <div class="form-group col-xs-6">
				            <label>店铺地址：</label>
				            <input name="addresses" type="text" class="form-control" placeholder="输入 ..." value="<?php echo $shop->addresses;?>" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>店铺评分：</label>
				            <input name="grade" type="text" class="form-control" placeholder="输入 ..." value="<?php echo $shop->grade;?>" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>已售数量：</label>
				            <input name="sold_out" type="text" class="form-control" placeholder="输入 ..." value="<?php echo $shop->sold_out;?>" check-type="required">
			            </div>
			            <div class="form-group col-xs-6">
				            <label>百度地图经度：</label>
				            <input name="bd_longitude" type="text" class="form-control" placeholder="输入 ..." value="<?php echo $shop->bd_longitude;?>" check-type="required">
			            </div>	
			            <div class="form-group col-xs-6">
				            <label>百度地图纬度：</label>
				            <input name="bd_latitude" type="text" class="form-control" placeholder="输入 ..." value="<?php echo $shop->bd_latitude;?>" check-type="required">
			            </div>				            
                    </div>           
                    <div class="clearfix form-actions">
						<div class="col-md-offset-3 col-md-9">
							<button id="btnSubmit" class="btn btn-info" type="submit">
								<i class="icon-ok bigger-110"></i>
								保存
							</button>
							&nbsp; &nbsp; &nbsp;
							<a class="btn" href="<?php echo base_url()."admin/gasstation/shops/".$shop->id?>">
								<i class="icon-undo bigger-110"></i>
								返回
							</a>
						</div>
					</div>
				</form>
			</div>
		</div><!-- /.row -->
	</div><!-- /.page-content -->
</div><!-- /.main-content -->
	<script type="text/javascript">
	$("#usrform").validation();
	//保存
	$("#btnSubmit").on('click',function(event){
	  // 2.最后要调用 valid()方法。
	  if ($("#usrform").valid()==false){
	    return false;
	  }
	});
	</script>